cmake_minimum_required (VERSION 2.6)

project (SQLite3)

set (CMAKE_DEBUG_POSTFIX "d")

add_library (sqlite3 sqlite3.c)

add_executable (shell shell.c)
target_link_libraries (shell sqlite3)
set_target_properties (shell PROPERTIES OUTPUT_NAME "sqlite3")

install (FILES sqlite3.h sqlite3ext.h DESTINATION include)
install (TARGETS shell RUNTIME DESTINATION bin)
install (TARGETS sqlite3 ARCHIVE DESTINATION lib)

